/**
 * Created by fifths on 17-8-15.
 */
import {Injectable} from '@angular/core';


@Injectable()
export class SessionStorageService {

  constructor() {
  }

  // 设置
  setGoodsCategory(item) {
    const data = JSON.stringify(item);
    localStorage.setItem('goodsCategory', data);
  }

  getGoodsCateogry() {
    const data = localStorage.getItem('goodsCategory');
    return JSON.parse(data);
  }


}
